import { createStore } from "vuex";
import vuexPersist from "vuex-persist";
export default createStore({
  state: {
    tab: "",
  },
  mutations: {
    change(state, obj) {
      state.tab = obj.desc;
    },
    //保存当前点击的tab数据
  },
  actions: {},
  modules: {},
  plugins: [
    new vuexPersist({
      storage: window.localStorage,
    }).plugin,
  ],
});
